{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
<!-- 导航 -->
<div class="row wrapper border-bottom white-bg page-heading consult-datals me-consult">
    <div class="col-sm-4">
        <h2>咨询详情</h2>
        <!-- 导航部分 -->
        <ol class="breadcrumb">
            <li><a href="{:url('admin/Index/home')}">主页</a></li>
            <li><a href="#">咨询管理</a></li>
            <li><strong>咨询详情</strong></li>
        </ol>
    </div>
    <div class="col-sm-8">
        <div class="title-action">
            <!-- 链接部分 -->
            <a href="{:url('admin/Consul/consult_list')}" class="btn btn-primary">咨询列表</a>
        </div>
    </div>
</div>
<!-- 内容 -->
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-title">

        </div>
        <div class="ibox-content">
            <div class="row">
                <table class="table table-bordered ">
                    <tbody>
                    <tr>
                        <td>咨询用户</td>
                        <th>咨询类型</th>
                        <th>咨询标题</th>
                        <th>咨询问题</th>
                        <th>咨询时间</th>
                        <th>浏览数量</th>
                    </tr>
                    <tr>
                        <th width="100"><span class="btn btn-xs btn-primary">{$info['u_nickname']?$info['u_nickname']:$info['u_phone']}</span></th>
                        <th >{$info['ct_name']}</th>
                        <td class="text-danger">{$info['ct_title']}</td>
                        <td >{$info['ct_details']}</td>
                        <td >{$info['ct_addtime']}</td>
                        <td >{$info['ct_sum']}</td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading detail-show">
                    <span class="btn-primary btn-xs btn btn-outline">回复列表</span>
                    <span class=" btn-xs btn btn-outline btn-danger " data-toggle="modal" data-target="#myModal" style="float: right">回复</span>
                </div>
                <table class="table table-bordered white-bg">
                    <tbody id="detail-tbodey">
                    <tr>
                        <td>ID</td>
                        <th>回复用户</th>
                        <th>信息内容</th>
                        <th>回复类型</th>
                        <th>回复时间</th>
                        <th>状态</th>
                    </tr>
                    {volist name="list" id="v"}
                    <tr>
                        <td>{$v['consult_reply_id']}</td>
                        <td>
                                {if condition="$v['cr_type'] eq 1"}
                                    <span class="btn btn-xs btn-primary"> {$v['user_name']}(用户)
                                {else /}
                                     <span class="btn btn-xs btn-success">{$v['user_name']}(律师)
                                {/if}
                            </span>
                        </td>
                        <td>{if condition="$v['cr_type'] eq 1"}
                                    <font color="#1ab394">
                             {else /}
                                    <font color="#1c84c6">
                             {/if}
                            {$v['cr_details']}</font>
                        </td>
                        <td>{if condition="$v['cr_state'] eq 1"}
                            <font color="#1ab394">回复
                                {else /}
                                <font color="#1c84c6">追问
                                    {/if}
                                </font>
                        </td>
                        <th>{$v['cr_addtims']}</th>
                        <td>
                            {if condition="$v['cp_state'] eq 1"}
                                 <span class="btn btn-xs btn-danger ">待回复</span>
                            {/if}
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="trajectory-img" >

                </div>
            </div>
        </div>
    </div>

    <!-- 模态窗口 -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated">

                <!-- 物流-->
                <div id="logistics-s">
                    <form method="get" class="valid-form form-horizontal order-send" onsubmit="return false;">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title">回复:<p id="ct_details" style="color: red;"></p></h4>

                        </div>
                        <div class="modal-body">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">回复内容：</label>
                                <div class="col-sm-6 vcheck-abs">
                                    <textarea cols="8" rows="8" type="text" class="form-control" name="fcr_details"  placeholder="回复内容" datatype="*" errormsg="请填写回复内容" sucmsg=" " >{$data['a_comment']?$data['a_comment']:''}</textarea>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" name="consult_id" value="{$info['consult_id']}"/>

                        <div class="modal-footer">
                            <button type="button" class="btn btn-white writ-type-remove" data-dismiss="modal">关闭</button>
                            <button type="button" class="submit btn btn-primary consul-me-request" >提交回复</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
{include file="include:js" /}